﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using Locallab.Ack999Helper.BusinessContextReader;
using Microsoft.BizTalk.Streaming;

namespace TestApp
{
    class Program
    {
        static void Main(string[] args)
        {
            int bufferSize = 4096;
            Stream fileStream = File.Open(@"E:\HIPAA_EDI\Sample5010837P.txt", FileMode.Open, FileAccess.Read, FileShare.Read);

            VirtualStream vStream = new VirtualStream();

            ReadOnlySeekableStream aStream = new ReadOnlySeekableStream(fileStream, vStream, bufferSize);

            BusinessContextReaderFactory f = new BusinessContextReaderFactory("");
            f.ProcessStream(aStream);
            
        }
    }
}
